package com.ry.servcie;

import com.ry.pojo.Order;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Random;

@Service
public class TestOrderImpl implements TestOrder {
    @Override
    public List<Order> getOrders(Integer status) {
        List<Order> list = new ArrayList<>();
        list.add(new Order("13165164341165","/images/banner.jpg",1000L,0,new Date()));
        list.add(new Order("13165164341166","/images/banner.jpg",2000L,1,new Date()));
        list.add(new Order("13165164341167","/images/banner.jpg",3000L,1,new Date()));
        list.add(new Order("13165164341168","/images/banner.jpg",4000L,0,new Date()));
        list.add(new Order("13165164341169","/images/banner.jpg",5000L,1,new Date()));
        return list;
    }
}
